%%% XXX platform-dependent constants from ffitarget.h
%%% driver already knows this as enum
%%% Erlang side should use atoms
-define(FFI_SYSV, 1).
-define(FFI_STDCALL, 2).
-define(FFI_DEFAULT_ABI, ?FFI_SYSV).

load_library_c(Lib) ->
    load_library(get_port(), Lib, ?FFI_SYSV).

load_library_win(Lib) ->
    load_library(get_port(), Lib, ?FFI_STDCALL).
